﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;

namespace MvcShop.Extensions
{
    public class ActionRouteDescriptorCache : ReaderWriterCache<MethodInfo, ActionRouteDescriptor>
    {
        public ActionRouteDescriptor Get(MethodInfo action)
        {
            return this.FetchOrCreateItem(action, () => new ActionRouteDescriptor(action));
        }
    }
}
